//import {ordinaryRoutes} from "../router";

const mutations = {
    Set_Token:(state,token) =>{
        state.token = token
    },
    Set_Username:(state,username) =>{
        state.username = username
    },
    Set_Roles:(state,roles) =>{
        state.roles = roles
    },
    /**
     * 路由
     * @param state
     * @param routes
     * @constructor
     */
    Set_Routes:(state,routes) => {
        state.routes = routes
    }
}
export default mutations